package com.erp.framework.util.excelupload;

import java.util.ArrayList;

import com.erp.framework.types.CustomBigInteger;
import com.erp.framework.util.logger.Logger;

public class ExcelRowVo {
	private String companyCode;                                                                        //DB Column Name: COMPANY_CODE
	private String jobId;                                                                              //DB Column Name: JOB_ID
	private CustomBigInteger excelLineNo;
	private ArrayList rowCellList;
    	
	public ExcelRowVo(ArrayList rowCellList) {
		super();
		this.rowCellList = rowCellList;
	}

	public ArrayList getRowCellList() {
		return rowCellList;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getJobId() {
		return jobId;
	}

	public void setJobId(String jobId) {
		this.jobId = jobId;
	}

	public CustomBigInteger getExcelLineNo() {
		return excelLineNo;
	}
	
	public void setExcelLineNo(CustomBigInteger excelLineNo) {
		this.excelLineNo = excelLineNo;
	}
	
	public Object clone() throws CloneNotSupportedException {
		ExcelRowVo object = null;
		try {
//			object = super.clone();
			ArrayList newList = (ArrayList)rowCellList.clone();
			for(int i=0; i<rowCellList.size(); i++)
                newList.set(i, ((ExcelCellVo)newList.get(i)).clone());
			object = new ExcelRowVo(newList);
			 
		} catch (CloneNotSupportedException e) {
			Logger.logExceptions(this, e);
			throw e;
		}
		return object;
	}
}
